package me.aartikov.alligator;

import me.aartikov.alligator.util.Log;
import ohos.agp.components.AttrSet;
import ohos.agp.components.Component;
import ohos.agp.components.StackLayout;
import ohos.app.Context;

public class FractionStackLayout extends StackLayout {
    public FractionStackLayout(Context context) {
        super(context);
    }

    public FractionStackLayout(Context context, AttrSet attrSet) {
        super(context, attrSet);
    }

    public FractionStackLayout(Context context, AttrSet attrSet, String styleName) {
        super(context, attrSet, styleName);
    }

    @Override
    public void addComponent(Component childComponent) {
        super.addComponent(childComponent);
        Log.i("FractionStackLayout.addComponent([childComponent]):23    " + getChildCount() + "     " + childComponent.getEstimatedWidth());
    }


    @Override
    public void removeComponent(Component component) {
        Log.i("FractionStackLayout.removeComponent([component]):30");
        super.removeComponent(component);
    }

    @Override
    public void removeAllComponents() {
        Log.i("FractionStackLayout.removeAllComponents([]):36");
        super.removeAllComponents();
    }
}
